package com.njym.java.security.app.biz;

import com.github.pagehelper.PageHelper;
import com.njym.java.security.app.entity.UserMessage;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import com.njym.java.security.app.entity.UserTeacherMessage;
import com.njym.java.security.app.mapper.UserTeacherMessageMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-03 09:48:52
 */
@Service
public class UserTeacherMessageBiz extends BaseBiz<UserTeacherMessageMapper,UserTeacherMessage> {
    @Resource
    private UserTeacherMessageMapper userTeacherMessageMapper;

    public List<UserTeacherMessage> queryTeacherHistory(String a, String b, Integer page, Integer limit){
        PageHelper.startPage(page, limit);
        return userTeacherMessageMapper.queryTeacherHistory(a, b);
    }

    public int countTeacherHistory(String a, String b){
        return userTeacherMessageMapper.countTeacherHistory(a, b);
    }
}